package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeisPatientBgRecorderId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientBgRecorderId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Timestamp recorderTime;
	private String foodsType;
	private String beforeFoodsBg;
	private String afterFoodsBg;
	private String memo;
	private String loginName;
	private Timestamp createTime;
	private Integer idPatient;

	// Constructors

	/** default constructor */
	public PeisPatientBgRecorderId() {
	}

	/** minimal constructor */
	public PeisPatientBgRecorderId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientBgRecorderId(Integer id, Timestamp recorderTime,
			String foodsType, String beforeFoodsBg, String afterFoodsBg,
			String memo, String loginName, Timestamp createTime,
			Integer idPatient) {
		this.id = id;
		this.recorderTime = recorderTime;
		this.foodsType = foodsType;
		this.beforeFoodsBg = beforeFoodsBg;
		this.afterFoodsBg = afterFoodsBg;
		this.memo = memo;
		this.loginName = loginName;
		this.createTime = createTime;
		this.idPatient = idPatient;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Timestamp getRecorderTime() {
		return this.recorderTime;
	}

	public void setRecorderTime(Timestamp recorderTime) {
		this.recorderTime = recorderTime;
	}

	public String getFoodsType() {
		return this.foodsType;
	}

	public void setFoodsType(String foodsType) {
		this.foodsType = foodsType;
	}

	public String getBeforeFoodsBg() {
		return this.beforeFoodsBg;
	}

	public void setBeforeFoodsBg(String beforeFoodsBg) {
		this.beforeFoodsBg = beforeFoodsBg;
	}

	public String getAfterFoodsBg() {
		return this.afterFoodsBg;
	}

	public void setAfterFoodsBg(String afterFoodsBg) {
		this.afterFoodsBg = afterFoodsBg;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientBgRecorderId))
			return false;
		PeisPatientBgRecorderId castOther = (PeisPatientBgRecorderId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getRecorderTime() == castOther.getRecorderTime()) || (this
						.getRecorderTime() != null
						&& castOther.getRecorderTime() != null && this
						.getRecorderTime().equals(castOther.getRecorderTime())))
				&& ((this.getFoodsType() == castOther.getFoodsType()) || (this
						.getFoodsType() != null
						&& castOther.getFoodsType() != null && this
						.getFoodsType().equals(castOther.getFoodsType())))
				&& ((this.getBeforeFoodsBg() == castOther.getBeforeFoodsBg()) || (this
						.getBeforeFoodsBg() != null
						&& castOther.getBeforeFoodsBg() != null && this
						.getBeforeFoodsBg()
						.equals(castOther.getBeforeFoodsBg())))
				&& ((this.getAfterFoodsBg() == castOther.getAfterFoodsBg()) || (this
						.getAfterFoodsBg() != null
						&& castOther.getAfterFoodsBg() != null && this
						.getAfterFoodsBg().equals(castOther.getAfterFoodsBg())))
				&& ((this.getMemo() == castOther.getMemo()) || (this.getMemo() != null
						&& castOther.getMemo() != null && this.getMemo()
						.equals(castOther.getMemo())))
				&& ((this.getLoginName() == castOther.getLoginName()) || (this
						.getLoginName() != null
						&& castOther.getLoginName() != null && this
						.getLoginName().equals(castOther.getLoginName())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getRecorderTime() == null ? 0 : this.getRecorderTime()
						.hashCode());
		result = 37 * result
				+ (getFoodsType() == null ? 0 : this.getFoodsType().hashCode());
		result = 37
				* result
				+ (getBeforeFoodsBg() == null ? 0 : this.getBeforeFoodsBg()
						.hashCode());
		result = 37
				* result
				+ (getAfterFoodsBg() == null ? 0 : this.getAfterFoodsBg()
						.hashCode());
		result = 37 * result
				+ (getMemo() == null ? 0 : this.getMemo().hashCode());
		result = 37 * result
				+ (getLoginName() == null ? 0 : this.getLoginName().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		return result;
	}

}